package cmo.neutech.day12.d3;

import java.util.Scanner;

public class systemLetter {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String x = sc.nextLine();
        String xx = sc.nextLine();
        int flog = 0;
        int xin = x.indexOf(xx);
        while   (xin != -1){
            flog ++;
            xin = x.indexOf(xx,xin+1);
        }
        System.out.println(flog);
    }
}
